From 402cecf9a2aecf95ac8efca84179adcb1ce8e956 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 19 Jan 2016 00:53:55 +0100 Subject: [PATCH] actionbar: Don't forall() widgets twice When using forall(), only list the revealer, which lists the box containing all the children. When using foreach(), bypass revealer and box and list all children added to the box. --- gtk/gtkactionbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index 84c43a83a4..49374e2ad6 100644 --- a/gtk/gtkactionbar.c +++ b/gtk/gtkactionbar.c @@ -141,8 +141,7 @@ gtk_action_bar_forall (GtkContainer *container, if (include_internals) (* callback) (priv->revealer, callback_data); - - if (priv->box) + else if (priv->box) gtk_container_forall (GTK_CONTAINER (priv->box), callback, callback_data); } -- 2.30.2